package com.zhz.model.system;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zhz.common.tool.mybatisplus.base.dal.entity.BasePO;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * 用户角色信息
 * @author zhouhengzhe
 * @date 2023/4/30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "pe_user_role")
public class UserRole extends BasePO {

    @TableField(ROLE_ID)
    @ApiModelProperty("角色ID")
    private String roleId;

    @TableField(USER_ID)
    @ApiModelProperty("权限ID")
    private String userId;

    public static final String ROLE_ID = "role_id";

    public static final String USER_ID = "user_id";

}